home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shw_div3roomkey.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  74 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shw_Divroom3key.cog
  4. #
  5. # Diversion Room 3 key cog
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.             
  14.     # MESSAGES
  15.     message    startup    
  16.     message    activated    
  17.             
  18.     # ACTORS
  19.     thing    player    local
  20.     
  21.     # PROPS
  22.     thing        key        
  23.     thing        curCam    local
  24.  
  25.     # CAM OBJECTS
  26.     thing        campos
  27.  
  28.     # SAYLINES
  29.     sound    in_whatsthis=INXJ002.WAV    local
  30.     sound    in_akey=INXJ167.WAV    local
  31.     
  32.  
  33.     # VARS
  34.     
  35.     
  36.  
  37. end
  38.  
  39. # ========================================================================================
  40.  
  41. code
  42.  
  43. startup:
  44.  
  45.     player = GetLocalPlayerThing();
  46.     return;
  47.  
  48. # ........................................................................................
  49. activated:
  50.  
  51. If (GetSenderRef() == key)
  52. {
  53.     curCam = GetCurrentCamera();
  54.     StartCutScene(1);
  55.     DeselectWeapon(player); # stow any weapon or lighter
  56.     Sleep(0.25);
  57.     SetExtCamOffsetToThing(campos);    # get camera to a known position
  58.     PlayVoice(player, in_whatsthis, 1, 0); # "...what's this?"
  59.     PlayMode(player, 60, 1);               # player grabs the goods
  60.     PlayVoice(player, in_akey, 1, 1); # "...A KEY!"
  61.     Sleep(0.25);
  62.     
  63.     # get out of the cutscene
  64.     RestoreExtCam();
  65.     EndCutScene();
  66.  
  67. }
  68. return;
  69.  
  70. # ........................................................................................
  71.  
  72. end
  73.  
  74.